.class Lcom/a/a/i;
.super Ljava/lang/Object;
.source "WebSocketClient.java"

# interfaces
.implements Lcom/a/a/h;


# instance fields
.field final synthetic a:Lcom/a/a/d;

.field private b:Landroid/os/Handler;

.field private c:Lcom/a/a/h;


# direct methods
.method public constructor <init>(Lcom/a/a/d;Landroid/os/Handler;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 293
    iput-object p1, p0, Lcom/a/a/i;->a:Lcom/a/a/d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 294
    iput-object p2, p0, Lcom/a/a/i;->b:Landroid/os/Handler;

    .line 295
    return-void
.end method

.method static synthetic a(Lcom/a/a/i;)Lcom/a/a/h;
    .locals 1
    .parameter

    .prologue
    .line 289
    iget-object v0, p0, Lcom/a/a/i;->c:Lcom/a/a/h;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/a/a/h;)V
    .locals 0
    .parameter

    .prologue
    .line 298
    iput-object p1, p0, Lcom/a/a/i;->c:Lcom/a/a/h;

    .line 299
    return-void
.end method

.method public onConnect()V
    .locals 2

    .prologue
    .line 307
    iget-object v0, p0, Lcom/a/a/i;->b:Landroid/os/Handler;

    new-instance v1, Lcom/a/a/j;

    invoke-direct {v1, p0}, Lcom/a/a/j;-><init>(Lcom/a/a/i;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 315
    return-void
.end method

.method public onDisconnect(ILjava/lang/String;)V
    .locals 2
    .parameter "code"
    .parameter "reason"

    .prologue
    .line 351
    iget-object v0, p0, Lcom/a/a/i;->b:Landroid/os/Handler;

    new-instance v1, Lcom/a/a/n;

    invoke-direct {v1, p0, p1, p2}, Lcom/a/a/n;-><init>(Lcom/a/a/i;ILjava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 359
    return-void
.end method

.method public onError(Ljava/lang/Exception;)V
    .locals 2
    .parameter "error"

    .prologue
    .line 362
    iget-object v0, p0, Lcom/a/a/i;->b:Landroid/os/Handler;

    new-instance v1, Lcom/a/a/o;

    invoke-direct {v1, p0, p1}, Lcom/a/a/o;-><init>(Lcom/a/a/i;Ljava/lang/Exception;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 370
    return-void
.end method

.method public onMessage(Ljava/lang/String;)V
    .locals 2
    .parameter "message"

    .prologue
    .line 318
    iget-object v0, p0, Lcom/a/a/i;->b:Landroid/os/Handler;

    new-instance v1, Lcom/a/a/k;

    invoke-direct {v1, p0, p1}, Lcom/a/a/k;-><init>(Lcom/a/a/i;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 326
    return-void
.end method

.method public onMessage([B)V
    .locals 2
    .parameter "data"

    .prologue
    .line 329
    iget-object v0, p0, Lcom/a/a/i;->b:Landroid/os/Handler;

    new-instance v1, Lcom/a/a/l;

    invoke-direct {v1, p0, p1}, Lcom/a/a/l;-><init>(Lcom/a/a/i;[B)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 337
    return-void
.end method

.method public onPing()V
    .locals 2

    .prologue
    .line 340
    iget-object v0, p0, Lcom/a/a/i;->b:Landroid/os/Handler;

    new-instance v1, Lcom/a/a/m;

    invoke-direct {v1, p0}, Lcom/a/a/m;-><init>(Lcom/a/a/i;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 348
    return-void
.end method
